package com.ljl.ningwei.service;

import com.ljl.ningwei.entity.Category;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 分类表 服务类
 * </p>
 *
 * @author ljl
 * @since 2025-03-24
 */
public interface CategoryService  {
        Category getById(Long id);

        Category extractById(Long id);

        void delete(Long id);

        List<Category> list();

        Long edit(Long id, String name, String imageUrl);

        List<Category> listByIds(String categoryIds);

        List<Long> getIdsByName(String keyname);

        List<Category> listByParentId(Integer parentId);
}
